<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/common.jsp"%>
<%@ page import="com.chanyachting.emall.util.*" %>
<%@ page import="java.util.*" %>

<%@ page import="com.chanyachting.emall.domain.*" %>
<%@ page import="com.chanyachting.emall.util.RequestUtil" %>
<%@ page import="com.chanyachting.emall.service.*" %>
<%@ page import="com.chanyachting.emall.serviceImpl.*" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" /> 
<meta name="description" content="" />
<link href="css/import.css" type="text/css" rel="stylesheet" />
<title></title>


<script type="text/javascript" src="<%=root %>/js/jquery-1.3.2.min.js" charset="utf-8">//ADCRM</script>
<script type="text/javascript" src="<%=root %>/js/jquery.form.js" charset="utf-8">//ADCRM</script>

<script language="javascript" type="text/javascript">

	$(function(){

		$.ajaxSetup ({
		    cache: false //关闭AJAX相应的缓存
		});

		});


	function saveproduct(theForm){

		//alert(theForm.action);

		options={
			    url:theForm.action,
			    success: function(data){
					
					alert("创建成功！");
				    }
			  };
				
		$(theForm).ajaxSubmit(options);
	}

</script>



</head>

<%

	//从session中获得公司对象
	RequestUtil ru=new RequestUtil(request);
	
	Company company=(Company)ru.getSessionObject(CompanyService.COMPANY_IN_SESSION,new Company());
	
	String id = ru.getParameter("id","0").trim();
	
	String actionName = "";
	String actionType = "";
	
	if ("0".equals(id)) {
		actionName = "/memberBackend/matchCreate.do";
		id = "";
		actionType = "发布";
	} else {
		actionName = "/memberBackend/matchUpdate.do";
		actionType = "修改";
	}
%>


<body>
<div class="tab_box">
	<div class="tab_menu">

        <a href="product_match_create.jsp" class="current"><%=actionType %>帆船赛事展示</a>
    </div>
	<div class="tab_submenu">
	  <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="50%"><span class="mu_title"><a href="product_match_create.jsp">基本信息</a> <a href="in3_5_b.html">图文信息</a></span></td>
          <td align="right"><strong><a href="#">预览</a><a href="#">打印</a><a href="#">导出</a></strong></td>
        </tr>
      </table>
	</div>
</div>



<form action="<%=root %>/memberBackend/matchCreate.do" method="post" enctype="multipart/form-data" name="form3" id="form3">

<input type="hidden" name="companyId" value="<%= company.getId() %>" />
<input type="hidden" name="point" value="0" />
<input type="hidden" name="type" value="05" />
<input type="hidden" name="status" value="00" />
<input type="hidden" name="id" value="<%=id %>" />

  <div id="bigbox">
   
    <table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="50%"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="100" height="28" align="right">产品名称：</td>
              <td><label>
                <input type="text" name="name" id="textfield47" value="${matchForm.match.name}" />
              </label></td>
            </tr>
        </table></td>
        <td valign="bottom">&nbsp;</td>
      </tr>
      <tr>
        <td valign="bottom">&nbsp;</td>	
        <td valign="bottom">&nbsp;</td>
      </tr>
    </table>
    <table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="3" class="td_top">&nbsp;</td>
      </tr>
      <tr>
        <td width="100" align="left"><div class="ptitle">主要特点</div></td>
        <td width="230" height="28" align="right">日期：</td>
        <td width="370"><label>
        <input type="text" name="date" id="textfield47" value="${matchForm.match.date}" />
</label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">赛事时间：</td>
        <td><label>
        <input type="text" name="beginDate" id="textfield47" value="${matchForm.match.beginDate}" />
</label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">参观方式：</td>
        <td><label>
          <input type="text" name="showWay" id="textfield33" value="${matchForm.match.showWay}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">现场地点：</td>
        <td><label>
          <input type="text" name="address" id="textfield34" value="${matchForm.match.address}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">国家：</td>
        <td><label>
         <select name="state" id="select8">
          	<option value="00">请选择</option>
          </select>
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">地区：</td>
        <td><label>
           <select name="area" id="select9">
          	<option value="00">请选择</option>
          </select>
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">电话：</td>
        <td><input type="text" name="tell" id="textfield60" value="${matchForm.match.tell}" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">传真：</td>
        <td><input type="text" name="fax" id="textfield61" value="${matchForm.match.fax}" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">电子邮件：</td>
        <td><input type="text" name="email" id="textfield62" value="${matchForm.match.email}" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">网站：</td>
        <td><input type="text" name="web" id="textfield63" value="${matchForm.match.web}" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">距离市中心：</td>
        <td><input type="text" name="centerDistance" id="textfield64" value="${matchForm.match.centerDistance}" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">距离机场：</td>
        <td><label>
          <input type="text" name="airDistance" id="textfield65" value="${matchForm.match.airDistance}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">运输安排从机场：</td>
        <td><label>
          <input type="text" name="transport" id="textfield66" value="${matchForm.match.transport}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">包住宿安排：</td>
        <td><label>
          <input type="text" name="lodging" id="textfield67" value="${matchForm.match.lodging}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">组织者：</td>
        <td><label>
          <input type="text" name="organizer" id="textfield68" value="${matchForm.match.organizer}" />
        </label></td>
      </tr>
      <tr>
        <td colspan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="3" class="td_top">&nbsp;</td>
      </tr>
      <tr>
        <td align="left"><div class="ptitle">赛事特点</div></td>
        <td height="28" align="right">参赛船只型号：</td>
        <td><input type="text" name="boatModel" id="textfield69" value="${matchForm.match.boatModel}" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">参赛资格：</td>
        <td><input type="text" name="qualification" id="textfield70" value="${matchForm.match.qualification}" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">赛事奖金：</td>
        <td><label>
          <input type="text" name="prize" id="textfield71" value="${matchForm.match.prize}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">赛事影响力：</td>
        <td><label>
          <input type="text" name="influence" id="textfield72" value="${matchForm.match.influence}" />
        </label></td>
      </tr>
      <tr>
        <td align="left"><div class="ptitle">赛事规模</div></td>
        <td height="28" align="right">参加船队数量：</td>
        <td><input type="text" name="fleetNumber" id="textfield70" value="${matchForm.match.fleetNumber}" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">船员人数：</td>
        <td><label>
          <input type="text" name="shipmenNumber" id="textfield73" value="${matchForm.match.shipmenNumber}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">媒体数量：</td>
        <td><label>
          <input type="text" name="mediumNumber" id="textfield74" value="${matchForm.match.mediumNumber}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">参赛国家：</td>
        <td><label>
          <input type="text" name="joinState" id="textfield75" value="${matchForm.match.joinState}" />
        </label></td>
      </tr>
      <tr>
        <td align="left"><div class="ptitle">出席/访客</div></td>
        <td height="28" align="right">船队人员：</td>
        <td><label>
          <input type="text" name="fleetPersonNumber" id="textfield76" value="${matchForm.match.fleetPersonNumber}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">服务人员：</td>
        <td><label>
          <input type="text" name="servicePersonNumber" id="textfield77" value="${matchForm.match.servicePersonNumber}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">业内人士：</td>
        <td><label>
          <input type="text" name="industryNumber" id="textfield78" value="${matchForm.match.industryNumber}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right">赞助商人员：</td>
        <td><label>
          <input type="text" name=sponsorsNumber id="textfield79" value="${matchForm.match.sponsorsNumber}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right"><label>媒体人员：</label></td>
        <td><label>
          <input type="text" name="mediumPersonNumber" id="textfield80" value="${matchForm.match.mediumPersonNumber}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right"><p>普通观众：</p></td>
        <td><label>
          <input type="text" name="spectatorsNumber" id="textfield81" value="${matchForm.match.spectatorsNumber}" />
        </label></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="28" align="right"><p>访问总数：</p></td>
        <td><label>
          <input type="text" name="allAccessNumber" id="textfield82" value="${matchForm.match.allAccessNumber}" />
        </label></td>
      </tr>
      <tr>
        <td colspan="2" align="right">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colspan="3" class="td_top">&nbsp;</td>
      </tr>
      <tr>
        <td  height="28"  align="left"><div class="ptitle">图文信息</div></td>
        <td height="28"  align="right">产品标题：</td>
        <td><p>
            <label>
            <input type="text" name="title" id="textfield56" value="${matchForm.match.title}" />
            </label>
        </p></td>
      </tr>
      <tr>
        <td colspan="2" align="right" valign="top">产品/服务描述：</td>
        <td height="28" valign="top"><label>
          <textarea name="productdesc" id="textarea8" cols="45" rows="5">${matchForm.match.productdesc}</textarea>
        </label></td>
      </tr>
      <tr>
        <td colspan="3" align="right" class="td_bottom">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="3"><table width="700" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td align="right">&nbsp;</td>
            <td width="550">&nbsp;</td>
          </tr>
          <tr>
            <td width="150" align="right">选择发布产品类型：</td>
            <td>
                <input type="radio" name="radio" id="radio3" value="radio" />
              立即发布
              <input type="radio" name="radio" id="radio4" value="radio2" />
              待上架 　 <span class="txt_gray">什么是待上架? 说明：待上架的内容不在前台显示</span></td>
          </tr>
        </table></td>
      </tr>
    </table>
    <table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td align="center" class="td_bottom">&nbsp;</td>
      </tr>
      <tr>
        <td height="60" align="center"><label>
          <input type="button" name="button3" id="button3" value="预览" />
          <input type="button" name="button3" id="button4" value="保存" onclick="saveproduct(this.form);"/>
          <input type="reset" name="button3" id="button6" value="取消" />
        </label></td>
      </tr>
    </table>
  </div>
</form>
</body>
</html>
